#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#

# -*- mode: python; -*-

Import('BuildEnv')
env = BuildEnv.Clone()

env.Append(LIBPATH = env['TOP'] + '/net')

env.Prepend(LIBS = ['gunit', 'net'])

bgp_af_test = env.UnitTest('bgp_af_test', ['bgp_af_test.cc'])
env.Alias('src/net:bgp_af_test', bgp_af_test)

esi_test = env.UnitTest('esi_test', ['esi_test.cc'])
env.Alias('src/net:esi_test', esi_test)

mac_address_test = env.UnitTest('mac_address_test', ['mac_address_test.cc'])
env.Alias('src/net:mac_address_test', mac_address_test)

rd_test = env.UnitTest('rd_test', ['rd_test.cc'])
env.Alias('src/net:rd_test', rd_test)

community_type_test = env.UnitTest('community_type_test', ['community_type_test.cc'])
env.Alias('src/net:community_type_test', community_type_test)

test_suite = [
    bgp_af_test,
    community_type_test,
    esi_test,
    mac_address_test,
    rd_test,
]

test = env.TestSuite('net-test', test_suite)
env.Alias('controller/src/net:test', test)

Return('test_suite')
